'use strict';

module.exports = app => {
  const mongoose = app.mongoose;
  const Schema = mongoose.Schema;
  const BorrowSchema = new Schema({
    userName: { type: String },
    startTime: { type: Number },
    isbn: { type: String },
  });
  return mongoose.model('Borrow', BorrowSchema);
};
